#ifndef GLOBALHEADER_H
#define GLOBALHEADER_H

#define GRID_SIZE    7
#define MAGTHRESHOLD 30
#define ANGLER_DIV_7   51.4286
#define ANGLER_DIV_8   45.0
#define FRETHRESHOLD 10			// is more frequent than 30% of the 7*7

typedef int GRID_POS;
typedef int PIX_POS;

typedef struct  
{
	int h;
	int w;
}Point2D;

typedef struct
{
	float mag;
	PIX_POS hpos;
	PIX_POS wpos;
}MagWithPos;


typedef struct
{
	int matchVal;
	int jPos;
	int iPos;
}MatchResult;

typedef struct
{
	CvPoint point1;
	CvPoint point2;
	bool    isDraw;
	IplImage* imgTemp;
	IplImage* greyImage;
	IplImage* depthImage;
}DrawRect;

typedef struct Saliency 
{	
	Saliency()
	{
		iGPos=0; 
		jGPos=0;
		disDir=0;
		hisValue=0;
	}
	int jGPos;
	int iGPos;
	int disDir;
	float hisValue;
}Saliency;


#include "HLUtility.h"
using namespace HLCAO;

#endif